package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongDfKouRowMapper implements RowMapper<NanDongDfKou> {
    @Override
    public NanDongDfKou mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongDfKou nd = new NanDongDfKou();
        nd.setId(resultSet.getInt("id"));
        nd.setCommittee(resultSet.getString("committee"));
        nd.setAddress(resultSet.getString("address"));
        nd.setService_time(resultSet.getString("service_time"));
        nd.setService_num(resultSet.getString("service_num"));
        nd.setLj_num(resultSet.getString("lj_num"));
        nd.setLng(resultSet.getString("lng"));
        nd.setLat(resultSet.getString("lat"));
        return nd;
    }
}
